﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BugNET.Common;
using BugNET.UserInterfaceLayer;
using BugNET.BLL;

namespace BugNET.WikiPages
{
    public partial class ShowWikiPageList : BasePage
    {        

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!UserManager.HasPermission(Convert.ToInt32(Request.Params["pid"]), Common.Permission.ViewWiki.ToString()))
                Response.Redirect("~/Errors/AccessDenied.aspx");

            var page = Page as UserInterfaceLayer.BasePage;

            if (page != null)
            {
                ProjectId = page.ProjectId;
            }
                       
            Page.Title = GetLocalResourceObject("PageTitle").ToString();
            
        }

        

    }
}